package com.design.strategy;

/**
 * @author cxx
 * @create 2020-04-21 14:44
 **/
public class Main {

    /**
     *  策略模式
     */
    public static void main(String[] args) {

        DBServer mysqlServer = new MysqlServer ();
        DBServer oracleServer = new OracleServer ();

        Executor executor = new Executor (mysqlServer);
        executor.execute ();

    }

}
